Hello! I'm with this script which the purpose of is to in a CSV file, put the id of my requirement, the module to which it is linked and the id of the linked object. (This requirement could have one or more links)
But the dxl is not working and I do not understand the reason for it. Does anyone have any ideas?
I put the dxl here, with the print instead of the stream out:
string sTgtName = ""
string idObj = ""
string idlink = ""
Module m = current
Object o
Object linkObj
Link lnk
ModName_ sourceMod
string linkModName = "*"
for o in m do{
if(canRead(o)){
if(!isDeleted o){
idObj = identifier(o) ""
for lnk in all(o<-linkModName) do {
sourceMod = source lnk
read(fullName(sourceMod), false)
}
for lnk in all(o<-linkModName) do {
sTgtName = name(sourceMod)
linkObj = source lnk
idlink = identifier(linkObj) ""
}
print idObj ";" sTgtName ";" idlink "\n"
sTgtName = ""
idlink = ""
}
}
}
Thanks!
Bruwbruw - Thu Sep 08 15:11:56 EDT 2016 |
Re: Script for incoming links Script might work if source module were already open. Inlink source modules need to be open -- suggest you look at help file to see how to open. |
Re: Script for incoming links You have to serach the LinkRef(s) instead of the Link(s) |